#!/bin/bash

echo "Linux终端美化"

echo "export PS1_COPY=\$PS1" >> ~/.bashrc
echo "export PS1='\t \${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '"  >> ~/.bashrc
echo "ip=\$(ip addr show ens33 | grep -o 'inet [0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+' | grep -o [0-9].*)" >> ~/.bashrc
echo 'echo "-----------------------"' >> ~/.bashrc
echo 'echo -e "IP: \033[32m$ip\033[0m"' >> ~/.bashrc
echo 'echo "-----------------------"' >> ~/.bashrc
